﻿using System;
using FastNet.Internal;

namespace FastNet
{
	public sealed class MessageEventArgs : EventArgs
	{
		internal MessageEventArgs( FastMessage message )
		{
			Logic.Check<ArgumentNullException>( message != null, "Message cannot be null" );

			this.Message = message;
		}


		public FastMessage Message { get; private set; }
	}
}